<%@ page language="java" pageEncoding="UTF-8"%>

<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/meta.jsp"%>
<%@ include file="/common-app/taglibs.jsp"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/runqianReport4.tld" prefix="report" %>


<html>
<head>
<script type="text/javascript" src="${res_app}/js/report/irisReport.js"></script>
<style type="text/css">
.scrollDivBody
			{
				overflow-x: auto;
				overflow-y: hidden;
				BACKGROUND-COLOR: #ffffff; 
				SCROLLBAR-FACE-COLOR: #CFDDF0; 
				SCROLLBAR-SHADOW-COLOR: #CFDDF0; 
				SCROLLBAR-3DLIGHT-COLOR: #CFDDF0; 
				SCROLLBAR-ARROW-COLOR: #CFDDF0;
			}
.input-line{
	BORDER-RIGHT: 1px solid #495172;
	PADDING-RIGHT: 1px;
	BORDER-TOP: 1px ridge #819AD2;
	PADDING-LEFT: 1px;
	FONT-SIZE: 9pt;
	PADDING-BOTTOM: 1px;
	BORDER-LEFT: 1px ridge #819AD2;
	COLOR: #0C2358;
	PADDING-TOP: 2px;
	BORDER-BOTTOM: 1px solid #495172;
	HEIGHT: 21px;
	BACKGROUND-COLOR: #FFFFFF;
	text-decoration:underline;
}

</style>


<script type="text/javascript">
$(function(){
	var path_val="${path}";
	$("table[id^='detailForm_sub']").each(function(){
		//直接使用生产地址图片
		$("colgroup").remove();
		$(this).attr("background","http://ywgl.snstd.gov.cn/egrantres_app/reportFile/4.0/证书1.jpg");
	});
});
function getCertificatePDF(posCode){
  scmSuccess("正在下载……请稍侯…");
  location =ctxpdf+"/pdf/getCertificatePDF?posCode="+posCode;
  return false;  
}
</script>

</head>
<body>

<div align="center">
<table >
<tr align="center">
<td align="center">
					<input type="button" class="button" value="存为PDF"
						onclick="getCertificatePDF(${posCode});" />
					<!-- <input type="button" class="button" value="存为word"
						onclick="detailFormPrint_saveAsWord()" /> -->
				    <!-- <input type="button" class="button" value="存为Excel"
						onclick="detailForm_saveAsExcel()" /> -->
					
</td>
</tr>
</table>
</div>
<table width="100%" align="center">
<tr>
<td align="center">

	<report:html name="detailForm" reportFileName="print_no_kxjsj_main.raq"
			width="-1"
			height="-1"
			funcBarLocation="boTh"
			functionBarColor="#fff5ee"
			funcBarFontSize="9pt"
			funcBarFontColor="blue"
			separator="&nbsp;&nbsp;"
			needSaveAsExcel="no"
			needSaveAsPdf="no"
			needPrint="no"
			printLabel="打印"
			params="v_pos_code=${posCode};path=${path}"
			saveAsName="打印证书"
			needPageMark="no"
			firstPageLabel="<span class='pageinfo'>[首 &nbsp;页]</span>" 
			prevPageLabel="<span class='pageinfo'>上一页</span>" 
			nextPageLabel="<span class='pageinfo'>下一页</span>" 
			lastPageLabel="<span class='pageinfo'>[最后页]</span>"
			pageMarkLabel="<span class='pageinfo'>第{currPage}页 共{totalPage}页</span>"					
			displayNoLinkPageMark="yes"
		/>
	<div style="display:none">
	<report:html name="detailFormPrint" reportFileName="print_no_kxjsj_main_for_print.raq"
			width="-1"
			height="-1"
			funcBarLocation="boTh"
			functionBarColor="#fff5ee"
			funcBarFontSize="9pt"
			funcBarFontColor="blue"
			separator="&nbsp;&nbsp;"
			needSaveAsExcel="no"
			needSaveAsPdf="no"
			needPrint="no"
			printLabel="打印"
			params="v_pos_code=${posCode};path=${path}"
			saveAsName="打印证书"
			needPageMark="no"
			firstPageLabel="<span class='pageinfo'>[首 &nbsp;页]</span>" 
			prevPageLabel="<span class='pageinfo'>上一页</span>" 
			nextPageLabel="<span class='pageinfo'>下一页</span>" 
			lastPageLabel="<span class='pageinfo'>[最后页]</span>"
			pageMarkLabel="<span class='pageinfo'>第{currPage}页 共{totalPage}页</span>"					
			displayNoLinkPageMark="yes"
		/>
	</div>	
		
</td>
</tr>
</table>
<br>
</body>
</html>




